package com.xcity.game.task.condition;

import com.alibaba.fastjson.annotation.JSONField;
import com.xcity.game.task.TaskCondition;
import com.xcity.game.task.TaskTemplate;

public class GetPetTaskCondition extends TaskCondition {

	@JSONField(serialize = false)
	protected int num;
	
	public GetPetTaskCondition(TaskTemplate template) {
		super(template);
		int[] conds = template.getConditions();
		num = conds[0];
	}

	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}

	@Override
	public int toClientCond() {
		return this.num;
	}
}
